package com.lanp.gencode.test;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;

public class 坐标围栏 {
    public static void main(String[] args) {
        String ss = "[[118.837863,32.036197],[118.816527,32.032046],[118.792756,31.988815],[118.840574,32.005726],[118.820164,32.015746],[118.832013,32.029501],[118.833579,32.00884],[118.854652,32.03553]]";
        JSONArray jsonArray = JSON.parseArray(ss);
        for (int i = 0; i < jsonArray.size(); i++) {
            JSONArray jsonArray1 = jsonArray.getJSONArray(i);
            System.out.println("new Coordinate("+jsonArray1.get(0) + "," + jsonArray1.get(1)+"),");
        }
    }
}
